package com.tansun.easycare.rule.ruletest.service;

import java.io.InputStream;

import com.tansun.easycare.rule.common.ResMessage;
import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.ruletest.entity.RuleTest;

/**
 * 批量测试服务
 *
 * @author lixs
 */
public interface RuleBatchTestService extends RuleBaseService<RuleTest> {

    /**
     * 创建批量测试信息
     */
    void createBatchTest(RuleTest ruleTest) throws BizException;

    /**
     * 创建下载模板
     */
    String[] createExcelTemp(String projectCode, RuleTest ruleTest) throws BizException;

    /**
     * 生成数据上传信息
     */
    ResMessage add(String projectCode, String id, InputStream file, String suffix) throws BizException;

    /**
     * 生成数据上传信息 xlsx
     */
    ResMessage addXlsx(String projectCode, String id, InputStream file) throws BizException;

    /**
     * 批量测试
     */
    void  testExcel(String projectCode, String id) throws BizException;

    /**
     * 删除批量测试
     */
    void delBatchTest(String id, String projectCode) throws BizException;

}
